package club.banyuan.collection.demo;


import java.util.*;

/**
 * @author edz
 * @version 1.0
 * @date 2020/12/2 下午3:17
 */
public class MyHashMap {
    public static void main(String[] args) {
        Map<String, List<Student>> studentMap=new HashMap<>();

        List<Student> list =new ArrayList<>();
        list.add(new Student("001","郭嘉",97));
        list.add(new Student("001","郭嘉",97));
        list.add(new Student("001","郭嘉",97));
        list.add(new Student("001","郭嘉",97));
        list.add(new Student("001","郭嘉",97));
        list.add(new Student("001","郭嘉",97));

        studentMap.put("A", list);
        studentMap.put("B", list);
        studentMap.put("C", list);
        studentMap.put("D", list);

    }
//    public static void add(List<Student> list){
//        for (int i = 0; i < list.size(); i++) {
//            if(list.get(i).getIQ()>=95){
//                studentMap.
//            }
//        }
//    }
    public static void add(Map<String,List<Student>> map){
        Set<String> set=map.keySet();
       final List<Student> students = map.get("D");

        for (String s : set) {

        }


    }




}
    class Student{
    private String stuNumber;
        private String name;
        private int IQ;

        public Student() {
        }

        public Student(String stuNumber, String name, int IQ) {
            this.stuNumber = stuNumber;
            this.name = name;
            this.IQ = IQ;
        }

        public String getStuNumber() {
            return stuNumber;
        }

        public void setStuNumber(String stuNumber) {
            this.stuNumber = stuNumber;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getIQ() {
            return IQ;
        }

        public void setIQ(int IQ) {
            this.IQ = IQ;
        }
    }
